/**
 * 
 */
package com.ordoict.smallsettlement.common.xml.entity;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;

/**
 * DESC : 
 *
 * @company : OrdoICT.,Inc
 * @author  : Choi Jin Wook // choijinwook84@ordoict.com
 * @version : 1.0.0
 * @since   : 2013. 12. 9.
 * 
 */
@XmlAccessorType(XmlAccessType.FIELD)
public class UnmarshallProperty {
    
    @XmlAttribute(name="name")      private String name;
    @XmlAttribute(name="type")      private String type;
    @XmlAttribute(name="startWith") private int startWith;
    @XmlAttribute(name="length")    private int length;
    @XmlAttribute(name="required")  private boolean required;

    
    /**
     * Property Name Setter
     * @param name
     */
    public void setName(String name){
        this.name = name;
    }
    
    /**
     * Property Name Getter
     * @return
     */
    public String getName(){
        return name;
    }
    
    /**
     * Property Type Setter
     * @param type
     */
    public void setType(String type){
        this.type = type;
    }
    
    /**
     * Property Type Getter
     * @return
     */
    public String getType(){
        return type;
    }
    
    /**
     * Separate Telegram Start With Position Setter
     * @param startWith
     */
    public void setStartWith(int startWith){
        this.startWith = startWith;
    }
    
    /**
     * Separate Telegram Start With Position Getter
     * @return
     */
    public int getStartWith(){
        return startWith;
    }
    
    /**
     * Separate Telegram Each Length Setter
     * @param length
     */
    public void setLength(int length){
        this.length = length;
    }
    
    /**
     * Separate Telegram Each Length Getter
     * @return
     */
    public int getLength(){
        return length;
    }

    /**
     * @since 2013. 12. 11.
     * @return the required
     */
    public boolean isRequired() {
        return required;
    }

    /**
     * @since 2013. 12. 11.
     * @param required the required to set
     */
    public void setRequired(boolean required) {
        this.required = required;
    }

}
